<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./lodash.js"></script>
  </head>
  <body>
    <script>
      /*
        深复制（克隆）
        浅复制（克隆）
      */

      const user = {
        name: 'jack',
        age: '20',
        size: {
          h: 100,
          w: 200,
        },
        say() {},
      };

      // console.log(_);
      const obj3 = _.cloneDeep(user);
      console.log(obj3.say === user.say);
      console.log(obj3.size === user.size);
    </script>
  </body>
</html>
